package  htmlAnalyze.htmlObject 
{
	import utils.Analyzer;
	import htmlAnalyze.MakeHtmlArray;
	/**
	 * ...
	 * @author FireKnight
	 */
	public class HTMLImageElement extends Object 
	{
		private var _vspace:Number;
		private var _hspace:Number;
		private var _x:Number;
		private var _y:Number;
		private var _name:String;
		private var _width:Number;
		private var _height:Number;
		private var _longDesc:String;
		private var _lowsrc:String;
		private var _naturalHeight:Number;
		private var _border:Number;
		private var _alt:String;
		private var _naturalWidth:Number;
		private var _outerHTML:String;
		private var _src:String;
		private var _className:String;
		private var _id:String;
		private var _title:String;
		private var _tagName:String;
		private var _nodeName:String;
		private var _resource:Object;
		public function HTMLImageElement(s:*) 
		{
			super();
			if (s.nodeName!="IMG")
			{
				trace("object is not IMG");
				return;
			}
			_resource = s;
			init(s);
		}
		
		private function init(s:*):void
		{
			_vspace = s.vspace;
			_hspace = s.hspace;
			_x = s.x;
			_y = s.y;
			_name = s.name;
			_width = s.width;
			_height = s.height;
			_longDesc = s.longDesc;
			_lowsrc = s.lowsrc;
			_naturalWidth = s.naturalWidth;
			_naturalHeight = s.naturalHeight;
			_border = s.border;
			_alt = s.alt;
			_outerHTML = s.outerHtml;
			_src = s.src;
			_className = s.className;
			_id = s.id;
			_title = s.title;
			_tagName = s.tagName;
			_nodeName = s.nodeName;
			
		}
		
		public function get outerHtml():String { return _outerHTML; }
		public function get className():String { return _className; }
		public function get longDesc():String { return _longDesc; }
		public function get lowsrc():String { return _lowsrc; }
		public function get src():String { return _src; }
		public function get name():String { return _name; }
		public function get id():String  { return _id; }
		public function get title():String  { return _title; }
		public function get vspace():Number  { return _vspace; }
		public function get hspace():Number  { return _hspace; }
		public function get border():Number  { return _border; }
		public function get x():Number  { return _x; }
		public function get y():Number  { return _y; }
		public function get naturalWidth():Number  { return _naturalWidth; }
		public function get naturalHeight():Number  { return _naturalHeight; }
		public function get width():Number  { return _width; }
		public function get height():Number  { return _height; }
		public function get nodeName():String  { return _nodeName; }
		public function get tagName():String  { return _tagName; }
		public function get resource():Object { return _resource};
		
		
	}
	
	/*
	 * 
	 * src= http://www.huarong56.com/uploads/allimg/111028/1_111028105505_1.JPG
vspace= 0
hspace= 0
y= 363
useMap= 
x= 119
complete= true
name= 
isMap= false
longDesc= 
height= 506
lowsrc= 
naturalHeight= 506
border= 0
alt= 
align= 
width= 760
naturalWidth= 760
outerHTML= <img style="cursor: pointer" border="0" alt="" width="760" height="506" onclick="window.open('/uploads/allimg/111028/1_111028105505_1.JPG')" src="http://www.huarong56.com/uploads/allimg/111028/1_111028105505_1.JPG">
className= 
innerText= 
id= 
title= 
lang= 
dir= 
innerHTML= 
contentEditable= false
tabIndex= -1
draggable= true
outerText= 
children= [object HTMLCollection]
isContentEditable= false
style= [object CSSStyleDeclaration]
scrollLeft= 0
clientWidth= 760
firstElementChild= null
scrollWidth= 760
clientLeft= 0
offsetWidth= 760
offsetLeft= 119
clientTop= 0
lastElementChild= null
offsetParent= [object HTMLBodyElement]
nextElementSibling= null
tagName= IMG
previousElementSibling= null
clientHeight= 506
childElementCount= 0
offsetTop= 363
offsetHeight= 506
scrollTop= 0
scrollHeight= 506
previousSibling= null
parentNode= [object HTMLDivElement]
lastChild= null
baseURI= http://www.huarong56.com/static/touguomeitikanhuarong/2011/1028/72.html
firstChild= null
nodeValue= null
textContent= 
nodeType= 1
nodeName= IMG
prefix= null
childNodes= [object NodeList]
nextSibling= null
attributes= [object NamedNodeMap]
ownerDocument= [object HTMLDocument]
namespaceURI= http://www.w3.org/1999/xhtml
localName= img
parentElement= [object HTMLDivElement]
insertAdjacentElement= function insertAdjacentElement() {
    [native code]
}
insertAdjacentHTML= function insertAdjacentHTML() {
    [native code]
}
insertAdjacentText= function insertAdjacentText() {
    [native code]
}
getElementsByTagName= function getElementsByTagName() {
    [native code]
}
getAttribute= function getAttribute() {
    [native code]
}
querySelectorAll= function querySelectorAll() {
    [native code]
}
webkitMatchesSelector= function webkitMatchesSelector() {
    [native code]
}
getElementsByClassName= function getElementsByClassName() {
    [native code]
}
contains= function contains() {
    [native code]
}
getBoundingClientRect= function getBoundingClientRect() {
    [native code]
}
querySelector= function querySelector() {
    [native code]
}
hasAttribute= function hasAttribute() {
    [native code]
}
getAttributeNode= function getAttributeNode() {
    [native code]
}
getAttributeNS= function getAttributeNS() {
    [native code]
}
getElementsByTagNameNS= function getElementsByTagNameNS() {
    [native code]
}
removeAttributeNS= function removeAttributeNS() {
    [native code]
}
getClientRects= function getClientRects() {
    [native code]
}
scrollByPages= function scrollByPages() {
    [native code]
}
setAttributeNode= function setAttributeNode() {
    [native code]
}
setAttributeNS= function setAttributeNS() {
    [native code]
}
hasAttributeNS= function hasAttributeNS() {
    [native code]
}
blur= function blur() {
    [native code]
}
scrollIntoViewIfNeeded= function scrollIntoViewIfNeeded() {
    [native code]
}
setAttribute= function setAttribute() {
    [native code]
}
scrollByLines= function scrollByLines() {
    [native code]
}
removeAttribute= function removeAttribute() {
    [native code]
}
setAttributeNodeNS= function setAttributeNodeNS() {
    [native code]
}
removeAttributeNode= function removeAttributeNode() {
    [native code]
}
getAttributeNodeNS= function getAttributeNodeNS() {
    [native code]
}
focus= function focus() {
    [native code]
}
scrollIntoView= function scrollIntoView() {
    [native code]
}
addEventListener= function addEventListener() {
    [native code]
}
appendChild= function appendChild() {
    [native code]
}
cloneNode= function cloneNode() {
    [native code]
}
removeEventListener= function removeEventListener() {
    [native code]
}
compareDocumentPosition= function compareDocumentPosition() {
    [native code]
}
insertBefore= function insertBefore() {
    [native code]
}
removeChild= function removeChild() {
    [native code]
}
hasAttributes= function hasAttributes() {
    [native code]
}
NOTATION_NODE= 12
CDATA_SECTION_NODE= 4
isSupported= function isSupported() {
    [native code]
}
ELEMENT_NODE= 1
DOCUMENT_POSITION_DISCONNECTED= 1
isEqualNode= function isEqualNode() {
    [native code]
}
ENTITY_NODE= 6
TEXT_NODE= 3
ENTITY_REFERENCE_NODE= 5
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC= 32
DOCUMENT_FRAGMENT_NODE= 11
dispatchEvent= function dispatchEvent() {
    [native code]
}
PROCESSING_INSTRUCTION_NODE= 7
isDefaultNamespace= function isDefaultNamespace() {
    [native code]
}
hasChildNodes= function hasChildNodes() {
    [native code]
}
DOCUMENT_POSITION_PRECEDING= 2
normalize= function normalize() {
    [native code]
}
DOCUMENT_TYPE_NODE= 10
COMMENT_NODE= 8
replaceChild= function replaceChild() {
    [native code]
}
DOCUMENT_POSITION_FOLLOWING= 4
ATTRIBUTE_NODE= 2
DOCUMENT_POSITION_CONTAINED_BY= 16
DOCUMENT_NODE= 9
DOCUMENT_POSITION_CONTAINS= 8
isSameNode= function isSameNode() {
    [native code]
}
lookupPrefix= function lookupPrefix() {
    [native code]
}
lookupNamespaceURI= function lookupNamespaceURI() {
    [native code]
}
	  */

}